<pro-header></pro-header>
<nz-card>

    <nz-table #nzTable [nzAjaxData]="data" [nzPageSize]="pagesize" [nzTotal]="total" [nzPageIndex]="pageCurrent"
              (nzPageIndexChange)="getlist($event)">
        <thead nz-thead>
        <tr>
            <th nz-th><span>序号</span></th>
            <th nz-th><span>姓名</span></th>
            <th nz-th><span>电话</span></th>
            <th nz-th><span>性别</span></th>
            <th nz-th><span>地址</span></th>
            <th nz-th><span>报考类型</span></th>
            <th nz-th><span>报名费</span></th>
            <th nz-th><span>培训费用</span></th>
            <th nz-th><span>总费用</span></th>
            <th nz-th><span>操作</span></th>
        </tr>
        </thead>
        <tbody nz-tbody>
        <tr nz-tbody-tr *ngFor="let item of nzTable.data;let  i=index">
            <td nz-td>{{i+1}}</td>
            <td nz-td>{{item['username']}}</td>
            <td nz-td>{{item['phone']}}</td>
            <td nz-td [ngSwitch]="item['sex']">
                <span *ngSwitchCase="0">男</span>
                <span *ngSwitchCase="1">女</span>
            </td>
            <td nz-td>
                {{item['address']}}
            </td>
            <td nz-td>{{item['infotype']}}</td>
            <td nz-td>{{item['signupPrice']}}</td>
            <td nz-td>{{item['trainePrice']}}</td>
            <td nz-td>{{item['totalPrice']}}</td>
            <td nz-td>
                <button nz-button [nzType]="'primary'" [disabled]="item['isDeal']==1" (click)="deal(item)">处理</button>
            </td>
        </tr>

        </tbody>
    </nz-table>

</nz-card>
